package cn.mingfancloud.基础知识.运算符;

public class ArithmeticDemo {
    public static void main(String[] args) {
        float num1 = 45.2f;
        int num2 = 120;
        int num3 = 17, num4 = 10;
        System.out.println("num1+num2的和为：" + (num1 + num2));
        System.out.println("num1-num2的差为：" + (num1 - num2));
        System.out.println("num1*num2的积为：" + (num1 * num2));
        System.out.println("num1/num2的商为：" + (num1 / num2));
        System.out.println("num3/num4 的余数为：" + (num3 % num4));
    }
}
